package com.admin.smoke;

import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;

public class BasePage {
	public static WebDriver driver = BaseTest.driver;
	
	public boolean isElementPresent(By by)
	{
		try
		{
			return driver.findElement(by).isDisplayed();
		}
		catch(NoSuchElementException e)
		{
			
		}
		return false;
	}
	
	public void sleepFor(int time)
	{
		try {
			Thread.sleep(time);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
